package br.com.vti.sisp_sicrim.antigo.controller.relatorios;

import java.io.FileNotFoundException;
import java.text.ParseException;

import net.sf.jasperreports.engine.JRException;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.interceptor.download.InputStreamDownload;
import br.com.vti.sisp_sicrim.antigo.model.DidCadastro;
import br.com.vti.sisp_sicrim.antigo.model.DidHistorico;
import br.com.vti.sisp_sicrim.antigo.model.SicControle;
import br.com.vti.sisp_sicrim.antigo.model.Sislac01;
import br.com.vti.sisp_sicrim.antigo.model.Sisldat8;
import br.com.vti.sisp_sicrim.antigo.model.Sisll001;
import br.com.vti.sisp_sicrim.antigo.model.Tablele;
import br.com.vti.sisp_sicrim.antigo.util.Relatorios;
import br.com.vti.sisp_sicrim.antigo.util.Sessao;

/**
 * Classe responsavel por encapsular o tratamento e as consistencias da tela Idcpe002Report
 * 
 * @author Incode - Data: mai/2014
 * 
 */
public class Idcpe002Report {
	private String nomeClasse;
	private int datemi;
	private String pais;
	private String portar;
	private String endere;
	private String codpor;
	private String cabecaGov;
	private String comple;
	private String dataCorrente;
	private String cabecaSeg;
	private String comuen;
	private String tipdoc;
	private String timx;
	private String cabecaIde;
	private int datexp;
	private String comuex;
	private long ndemid;
	private String numpos;
	private String ordens;
	private long regger;
	private String nomant;
	private int datnas;
	private String comuna;
	private String corolh;
	private String codsex;
	private String codcut;
	private String tipsan;
	private String tipcab;
	private String corcab;
	private String fatorh;
	private String codpro;
	private String estciv;
	private String dtnt;
	private String nacion;
	private int datnat;
	private String diaideObserv; // DB
	private Integer dinideNumpor; // DB
	private Integer dinideAnopor; // DB
	private Long dincntNdemid; // DB
	private String diaideObserv1; // DB
	private Long dinideNumcpf; // DB
	private Integer dinideCodcep; // DB
	private String diaideNumfol; // DB
	private String diaideNumliv; // DB
	private String diaideNumcer; // DB
	private String diaideVcivil; // DB
	private String diaideZonaof; // DB
	private String diaidePoldir; // DB
	private String diaideInddir; // DB
	private String diaideMeddir; // DB
	private String diaideNomcar; // DB
	private String diaideAnudir; // DB
	private String diaideMindir; // DB
	private String diaidePolesq; // DB
	private String diaideIndesq; // DB
	private String diaideMedesq; // DB
	private String diaideAnuesq; // DB
	private String diaideMinesq; // DB
	private Integer dinideCartra; // DB
	private Long dinideNserie; // DB
	private String diaideNuzona; // DB
	private String diaideNsecao; // DB
	private String diacntDestin; // DB
	private Long dinideTitele; // DB
	private String diaideUftitu; // DB
	private Long dinideCermil; // DB
	private String diaideRegiao; // DB
	private Long dinidePrtcnh; // DB
	private String diaideUfpcnh; // DB
	private Long dinideRegant; // DB
	private String diaideUfrant; // DB
	private String diaideNomide; // DB
	private String diaideNompai; // DB
	private String diaideNommae; // DB
	private String diaideNomant; // DB
	private Integer dinideAltura; // DB
	private String horaCorrente;
	private Result result;
	private Sessao sessao;
	private Relatorios report;
	// Classes views
	DidCadastro vwDidcad = new DidCadastro();
	DidHistorico vwDidhis = new DidHistorico();
	SicControle vwDvecon = new SicControle();
	// Classes includes
	Sislac01 sislac01 = new Sislac01();
	Sisldat8 sisldat8 = new Sisldat8();
	Sisll001 sisll001 = new Sisll001();
	Tablele tablele = new Tablele();

	public Idcpe002Report() throws JRException, ParseException {
		inicializar();
	}

	public Idcpe002Report(Sessao sessao) throws JRException, ParseException {
		this.sessao = sessao;
		inicializar();
	}

	public void inicializar() throws JRException, ParseException {
		report = new Relatorios();
		nomeClasse = this.getClass().getSimpleName();
		datemi = 0;
		pais = "";
		portar = "";
		endere = "";
		codpor = "";
		cabecaGov = "SECRETARIA DE ESTADO DO PLANEJAMENTO E ORCAMENTO - SEPLAN";
		comple = "";
		dataCorrente = "";
		cabecaSeg = "SECRETARIA DE ESTADO DA SEGURAN�A PUBLICA";
		comuen = "";
		tipdoc = "";
		timx = "";
		cabecaIde = "INSTITUTO DE IDENTIFICACAO CIVIL - IIC";
		datexp = 0;
		comuex = "";
		ndemid = 0;
		numpos = "";
		ordens = "";
		regger = 0;
		nomant = "";
		datnas = 0;
		comuna = "";
		corolh = "";
		codsex = "";
		codcut = "";
		tipsan = "";
		tipcab = "";
		corcab = "";
		fatorh = "";
		codpro = "";
		estciv = "";
		dtnt = "";
		nacion = "";
		datnat = 0;
		report.setNumeroRel(1, "D");
		{
			report.setNumeroLinhaRel(1, 1);
			{
				report.adicionaCampo(1, 1, "lit_1_1", "C", "", " ");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(2, 2);
			{
				report.adicionaCampo(1, 60, "Cabecagov", "X", "99/99/9999", "");
				report.adicionaCampo(70, 8, "dataCorrente", "N", "99/99/9999", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(3, 2);
			{
				report.adicionaCampo(1, 60, "Cabecaseg", "X", "", "");
				report.adicionaCampo(72, 8, "Timx", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(4, 1);
			{
				report.adicionaCampo(1, 50, "Cabecaide", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(6, 2);
			{
				report.adicionaCampo(20, 41, "lit_20_41", "C", "", "C E R T I D A O   D A   I. C I V I L   N.");
				report.adicionaCampo(62, 13, "Ndemid", "N", "9999999999999", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(8, 2);
			{
				report.adicionaCampo(1, 25, "lit_1_25", "C", "", "**** DESTINO DA CERTIDAO:");
				report.adicionaCampo(27, 30, "Diacntdestin", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(10, 1);
			{
				report.adicionaCampo(1, 1, "lit_1_1", "C", "", "-");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(12, 5);
			{
				report.adicionaCampo(1, 15, "lit_1_15", "C", "", "REGISTRO GERAL:");
				report.adicionaCampo(17, 13, "Regger", "N", "ZZZZZZZZ9999-9", "");
				report.adicionaCampo(2, 18, "lit_2_18", "C", "", "REGISTRO ANTERIOR:");
				report.adicionaCampo(21, 13, "Dinideregant", "N", "ZZZZZZZZZZZZZ", "");
				report.adicionaCampo(35, 2, "Diaideufrant", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(14, 1);
			{
				report.adicionaCampo(1, 15, "lit_1_15", "C", "", "DADOS PESSOAIS:");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(15, 2);
			{
				report.adicionaCampo(6, 14, "lit_6_14", "C", "", "NOME IDENTIF.:");
				report.adicionaCampo(21, 60, "Diaidenomide", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(16, 2);
			{
				report.adicionaCampo(6, 14, "lit_6_14", "C", "", "NOME DO PAI..:");
				report.adicionaCampo(21, 60, "Diaidenompai", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(17, 2);
			{
				report.adicionaCampo(6, 14, "lit_6_14", "C", "", "NOME DA MAE..:");
				report.adicionaCampo(21, 60, "Diaidenommae", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(18, 2);
			{
				report.adicionaCampo(6, 14, "Nomant", "X", "", "");
				report.adicionaCampo(21, 60, "Diaidenomant", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(20, 4);
			{
				report.adicionaCampo(6, 19, "lit_6_19", "C", "", "DATA DE NASCIMENTO:");
				report.adicionaCampo(26, 8, "Datnas", "N", "99/99/9999", "");
				report.adicionaCampo(35, 9, "lit_35_9", "C", "", "MUNICIPIO");
				report.adicionaCampo(45, 32, "Comuna", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(21, 8);
			{
				report.adicionaCampo(6, 5, "lit_6_5", "C", "", "SEXO:");
				report.adicionaCampo(12, 9, "Codsex", "X", "", "");
				report.adicionaCampo(6, 6, "lit_6_6", "C", "", "CUTIS:");
				report.adicionaCampo(13, 12, "Codcut", "X", "", "");
				report.adicionaCampo(2, 7, "lit_2_7", "C", "", "OLHOS :");
				report.adicionaCampo(10, 9, "Corolh", "X", "", "");
				report.adicionaCampo(6, 7, "lit_6_7", "C", "", "SANGUE:");
				report.adicionaCampo(14, 2, "Tipsan", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(22, 8);
			{
				report.adicionaCampo(6, 8, "lit_6_8", "C", "", "CABELOS:");
				report.adicionaCampo(15, 9, "Corcab", "X", "", "");
				report.adicionaCampo(4, 5, "lit_4_5", "C", "", "TIPO:");
				report.adicionaCampo(10, 9, "Tipcab", "X", "", "");
				report.adicionaCampo(5, 7, "lit_5_7", "C", "", "ALTURA:");
				report.adicionaCampo(13, 3, "Dinidealtura", "N", "9.99", "");
				report.adicionaCampo(9, 9, "lit_9_9", "C", "", "FATOR RH:");
				report.adicionaCampo(19, 1, "Fatorh", "X", "9.99", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(23, 4);
			{
				report.adicionaCampo(6, 13, "lit_6_13", "C", "", "ESTADO CIVIL:");
				report.adicionaCampo(20, 12, "Estciv", "X", "", "");
				report.adicionaCampo(4, 10, "lit_4_10", "C", "", "PROFISSAO:");
				report.adicionaCampo(15, 25, "Codpro", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(24, 4);
			{
				report.adicionaCampo(6, 14, "lit_6_14", "C", "", "NACIONALIDADE:");
				report.adicionaCampo(21, 12, "Nacion", "X", "ZZ/ZZ/ZZZZ", "");
				report.adicionaCampo(15, 19, "Dtnt", "X", "ZZ/ZZ/ZZZZ", "");
				report.adicionaCampo(35, 8, "Datnat", "N", "ZZ/ZZ/ZZZZ", "");
				report.setFimLinhaRel();
			}
		}
		report.setNumeroRel(2, "D");
		{
			report.setNumeroLinhaRel(1, 5);
			{
				report.adicionaCampo(6, 11, "Portar", "X", "ZZZZZ", "");
				report.adicionaCampo(18, 5, "Dinidenumpor", "N", "ZZZZZ", "");
				report.adicionaCampo(24, 4, "Dinideanopor", "N", "ZZZZZ", "");
				report.adicionaCampo(4, 13, "Pais", "X", "", "");
				report.adicionaCampo(18, 20, "Codpor", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(3, 4);
			{
				report.adicionaCampo(1, 19, "lit_1_19", "C", "", "DOCUMENTOS:    CPF:");
				report.adicionaCampo(21, 11, "Dinidenumcpf", "N", "ZZZ.ZZZ.ZZZ-ZZ", "");
				report.adicionaCampo(2, 18, "lit_2_18", "C", "", "TIPO DE DOCUMENTO:");
				report.adicionaCampo(21, 20, "Tipdoc", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(4, 8);
			{
				report.adicionaCampo(6, 9, "lit_6_9", "C", "", "CERTIDAO:");
				report.adicionaCampo(16, 9, "Diaidenumcer", "X", "", "");
				report.adicionaCampo(2, 6, "lit_2_6", "C", "", "FOLHA:");
				report.adicionaCampo(9, 6, "Diaidenumfol", "X", "", "");
				report.adicionaCampo(2, 6, "lit_2_6", "C", "", "LIVRO:");
				report.adicionaCampo(9, 8, "Diaidenumliv", "X", "99/99/9999", "");
				report.adicionaCampo(2, 10, "lit_2_10", "C", "", "EXPEDICAO:");
				report.adicionaCampo(13, 8, "Datexp", "N", "99/99/9999", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(5, 6);
			{
				report.adicionaCampo(6, 11, "lit_6_11", "C", "", "VARA CIVIL:");
				report.adicionaCampo(18, 6, "Diaidevcivil", "X", "", "");
				report.adicionaCampo(25, 7, "lit_25_7", "C", "", "OFICIO:");
				report.adicionaCampo(33, 6, "Diaidezonaof", "X", "", "");
				report.adicionaCampo(40, 9, "lit_40_9", "C", "", "CARTORIO:");
				report.adicionaCampo(50, 20, "Diaidenomcar", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(6, 2);
			{
				report.adicionaCampo(6, 23, "lit_6_23", "C", "", "MUNICIPIO DE EXPEDICAO:");
				report.adicionaCampo(30, 32, "Comuex", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(7, 4);
			{
				report.adicionaCampo(6, 28, "lit_6_28", "C", "", "CARTEIRA DE TRABALHO NUMERO:");
				report.adicionaCampo(35, 8, "Dinidecartra", "N", "ZZZZZZZZ", "");
				report.adicionaCampo(44, 6, "lit_44_6", "C", "", "SERIE:");
				report.adicionaCampo(51, 13, "Dinidenserie", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(8, 8);
			{
				report.adicionaCampo(6, 28, "lit_6_28", "C", "", "TITULO DE ELEITOR    NUMERO:");
				report.adicionaCampo(35, 11, "Dinidetitele", "N", "ZZZZZZZZZZZ", "");
				report.adicionaCampo(47, 3, "lit_47_3", "C", "", "UF:");
				report.adicionaCampo(51, 2, "Diaideuftitu", "X", "", "");
				report.adicionaCampo(2, 5, "lit_2_5", "C", "", "ZONA:");
				report.adicionaCampo(8, 2, "Diaidenuzona", "X", "", "");
				report.adicionaCampo(2, 6, "lit_2_6", "C", "", "SECAO:");
				report.adicionaCampo(9, 4, "Diaidensecao", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(9, 4);
			{
				report.adicionaCampo(6, 28, "lit_6_28", "C", "", "CERTIFICADO MILITAR  NUMERO:");
				report.adicionaCampo(35, 10, "Dinidecermil", "N", "ZZZZZZZZZZ", "");
				report.adicionaCampo(46, 7, "lit_46_7", "C", "", "REGIAO:");
				report.adicionaCampo(54, 3, "Diaideregiao", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(10, 4);
			{
				report.adicionaCampo(6, 15, "lit_6_15", "C", "", "PRONTUARIO CNH:");
				report.adicionaCampo(22, 9, "Dinideprtcnh", "N", "ZZZZZZZZZ", "");
				report.adicionaCampo(32, 3, "lit_32_3", "C", "", "UF:");
				report.adicionaCampo(36, 2, "Diaideufpcnh", "X", "", "");
				report.setFimLinhaRel();
			}
		}
		report.setNumeroRel(3, "D");
		{
			report.setNumeroLinhaRel(1, 2);
			{
				report.adicionaCampo(1, 16, "lit_1_16", "C", "", "ENDERECO/NUMERO:");
				report.adicionaCampo(18, 35, "Endere", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(2, 2);
			{
				report.adicionaCampo(6, 21, "lit_6_21", "C", "", "COMPLEMENTO/BAIRRO  :");
				report.adicionaCampo(28, 40, "Comple", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(3, 4);
			{
				report.adicionaCampo(6, 10, "lit_6_10", "C", "", "MUNICIPIO:");
				report.adicionaCampo(17, 32, "Comuen", "X", "", "");
				report.adicionaCampo(50, 4, "lit_50_4", "C", "", "CEP:");
				report.adicionaCampo(55, 8, "Dinidecodcep", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(5, 6);
			{
				report.adicionaCampo(1, 32, "lit_1_32", "C", "", "FORMULA DATILOSCOPICA: MAO DIR.:");
				report.adicionaCampo(34, 7, "Diaidepoldir", "X", "", "");
				report.adicionaCampo(42, 7, "Diaideinddir", "X", "", "");
				report.adicionaCampo(50, 7, "Diaidemeddir", "X", "", "");
				report.adicionaCampo(58, 7, "Diaideanudir", "X", "", "");
				report.adicionaCampo(66, 7, "Diaidemindir", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(6, 6);
			{
				report.adicionaCampo(24, 9, "lit_24_9", "C", "", "MAO ESQ.:");
				report.adicionaCampo(34, 7, "Diaidepolesq", "X", "", "");
				report.adicionaCampo(42, 7, "Diaideindesq", "X", "", "");
				report.adicionaCampo(50, 7, "Diaidemedesq", "X", "", "");
				report.adicionaCampo(58, 7, "Diaideanuesq", "X", "", "");
				report.adicionaCampo(66, 7, "Diaideminesq", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(8, 4);
			{
				report.adicionaCampo(1, 19, "lit_1_19", "C", "", "MOTIVO ATUALIZACAO:");
				report.adicionaCampo(21, 15, "Ordens", "X", "", "");
				report.adicionaCampo(2, 18, "lit_2_18", "C", "", "POSTO ATENDIMENTO:");
				report.adicionaCampo(21, 15, "Numpos", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(10, 1);
			{
				report.adicionaCampo(1, 47, "lit_1_47", "C", "", "DOC. IDENTIDADE EMITIDAS:     NUMERO   DT.EXPED");
				report.setFimLinhaRel();
			}
		}
		report.setNumeroRel(4, "D");
		{
			report.setNumeroLinhaRel(1, 2);
			{
				report.adicionaCampo(26, 13, "Dincntndemid", "N", "99/99/9999", "");
				report.adicionaCampo(2, 8, "Datemi", "N", "99/99/9999", "");
				report.setFimLinhaRel();
			}
		}
		report.setNumeroRel(5, "D");
		{
			report.setNumeroLinhaRel(1, 2);
			{
				report.adicionaCampo(1, 4, "lit_1_4", "C", "", "OBS:");
				report.adicionaCampo(6, 60, "Diaideobserv", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(2, 1);
			{
				report.adicionaCampo(5, 60, "Diaideobserv1", "X", "", "");
				report.setFimLinhaRel();
			}
		}
		report.setNumeroRel(6, "D");
		{
			report.setNumeroLinhaRel(3, 1);
			{
				report.adicionaCampo(22, 1, "lit_22_1", "C", "", "-");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(4, 1);
			{
				report.adicionaCampo(25, 23, "lit_25_23", "C", "", "DIRETOR DO INSTITUTO DE");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(5, 1);
			{
				report.adicionaCampo(22, 30, "lit_22_30", "C", "", "IDENTIFICACAO CIVIL E CRIMINAL");
				report.setFimLinhaRel();
			}
		}
		setCabecagov(cabecaGov);
		setCabecaseg(cabecaSeg);
		setCabecaide(cabecaIde);
		setHoraCorrente(horaCorrente);
	}

	public boolean validar() {
		// validar os campos recebidos da tela
		return true;
	}

	public String getNomeClasse() {
		return nomeClasse;
	}

	public void setNomeClasse(String nomeClasse) throws ParseException {
		this.nomeClasse = nomeClasse;
		report.adicionaValorReport("Program", nomeClasse);
	}

	public int getDatemi() {
		return datemi;
	}

	public void setDatemi(int datemi) throws ParseException {
		this.datemi = datemi;
		report.adicionaValorReport("Datemi", datemi);
	}

	public String getPais() {
		return pais;
	}

	public void setPais(String pais) throws ParseException {
		this.pais = pais;
		report.adicionaValorReport("Pais", pais);
	}

	public String getPortar() {
		return portar;
	}

	public void setPortar(String portar) throws ParseException {
		this.portar = portar;
		report.adicionaValorReport("Portar", portar);
	}

	public String getEndere() {
		return endere;
	}

	public void setEndere(String endere) throws ParseException {
		this.endere = endere;
		report.adicionaValorReport("Endere", endere);
	}

	public String getCodpor() {
		return codpor;
	}

	public void setCodpor(String codpor) throws ParseException {
		this.codpor = codpor;
		report.adicionaValorReport("Codpor", codpor);
	}

	public String getCabecagov() {
		return cabecaGov;
	}

	public void setCabecagov(String cabecaGov) throws ParseException {
		this.cabecaGov = cabecaGov;
		report.adicionaValorReport("Cabecagov", cabecaGov);
	}

	public String getComple() {
		return comple;
	}

	public void setComple(String comple) throws ParseException {
		this.comple = comple;
		report.adicionaValorReport("Comple", comple);
	}

	public String getDataCorrente() {
		return dataCorrente;
	}

	public void setDataCorrente(String dataCorrente) throws ParseException {
		this.dataCorrente = dataCorrente;
		report.adicionaValorReport("dataCorrente", dataCorrente);
	}

	public String getCabecaseg() {
		return cabecaSeg;
	}

	public void setCabecaseg(String cabecaSeg) throws ParseException {
		this.cabecaSeg = cabecaSeg;
		report.adicionaValorReport("Cabecaseg", cabecaSeg);
	}

	public String getComuen() {
		return comuen;
	}

	public void setComuen(String comuen) throws ParseException {
		this.comuen = comuen;
		report.adicionaValorReport("Comuen", comuen);
	}

	public String getTipdoc() {
		return tipdoc;
	}

	public void setTipdoc(String tipdoc) throws ParseException {
		this.tipdoc = tipdoc;
		report.adicionaValorReport("Tipdoc", tipdoc);
	}

	public String getTimx() {
		return timx;
	}

	public void setTimx(String timx) throws ParseException {
		this.timx = timx;
		report.adicionaValorReport("Timx", timx);
	}

	public String getCabecaide() {
		return cabecaIde;
	}

	public void setCabecaide(String cabecaIde) throws ParseException {
		this.cabecaIde = cabecaIde;
		report.adicionaValorReport("Cabecaide", cabecaIde);
	}

	public int getDatexp() {
		return datexp;
	}

	public void setDatexp(int datexp) throws ParseException {
		this.datexp = datexp;
		report.adicionaValorReport("Datexp", datexp);
	}

	public String getComuex() {
		return comuex;
	}

	public void setComuex(String comuex) throws ParseException {
		this.comuex = comuex;
		report.adicionaValorReport("Comuex", comuex);
	}

	public long getNdemid() {
		return ndemid;
	}

	public void setNdemid(long ndemid) throws ParseException {
		this.ndemid = ndemid;
		report.adicionaValorReport("Ndemid", ndemid);
	}

	public String getNumpos() {
		return numpos;
	}

	public void setNumpos(String numpos) throws ParseException {
		this.numpos = numpos;
		report.adicionaValorReport("Numpos", numpos);
	}

	public String getOrdens() {
		return ordens;
	}

	public void setOrdens(String ordens) throws ParseException {
		this.ordens = ordens;
		report.adicionaValorReport("Ordens", ordens);
	}

	public long getRegger() {
		return regger;
	}

	public void setRegger(long regger) throws ParseException {
		this.regger = regger;
		report.adicionaValorReport("Regger", regger);
	}

	public String getNomant() {
		return nomant;
	}

	public void setNomant(String nomant) throws ParseException {
		this.nomant = nomant;
		report.adicionaValorReport("Nomant", nomant);
	}

	public int getDatnas() {
		return datnas;
	}

	public void setDatnas(int datnas) throws ParseException {
		this.datnas = datnas;
		report.adicionaValorReport("Datnas", datnas);
	}

	public String getComuna() {
		return comuna;
	}

	public void setComuna(String comuna) throws ParseException {
		this.comuna = comuna;
		report.adicionaValorReport("Comuna", comuna);
	}

	public String getCorolh() {
		return corolh;
	}

	public void setCorolh(String corolh) throws ParseException {
		this.corolh = corolh;
		report.adicionaValorReport("Corolh", corolh);
	}

	public String getCodsex() {
		return codsex;
	}

	public void setCodsex(String codsex) throws ParseException {
		this.codsex = codsex;
		report.adicionaValorReport("Codsex", codsex);
	}

	public String getCodcut() {
		return codcut;
	}

	public void setCodcut(String codcut) throws ParseException {
		this.codcut = codcut;
		report.adicionaValorReport("Codcut", codcut);
	}

	public String getTipsan() {
		return tipsan;
	}

	public void setTipsan(String tipsan) throws ParseException {
		this.tipsan = tipsan;
		report.adicionaValorReport("Tipsan", tipsan);
	}

	public String getTipcab() {
		return tipcab;
	}

	public void setTipcab(String tipcab) throws ParseException {
		this.tipcab = tipcab;
		report.adicionaValorReport("Tipcab", tipcab);
	}

	public String getCorcab() {
		return corcab;
	}

	public void setCorcab(String corcab) throws ParseException {
		this.corcab = corcab;
		report.adicionaValorReport("Corcab", corcab);
	}

	public String getFatorh() {
		return fatorh;
	}

	public void setFatorh(String fatorh) throws ParseException {
		this.fatorh = fatorh;
		report.adicionaValorReport("Fatorh", fatorh);
	}

	public String getCodpro() {
		return codpro;
	}

	public void setCodpro(String codpro) throws ParseException {
		this.codpro = codpro;
		report.adicionaValorReport("Codpro", codpro);
	}

	public String getEstciv() {
		return estciv;
	}

	public void setEstciv(String estciv) throws ParseException {
		this.estciv = estciv;
		report.adicionaValorReport("Estciv", estciv);
	}

	public String getDtnt() {
		return dtnt;
	}

	public void setDtnt(String dtnt) throws ParseException {
		this.dtnt = dtnt;
		report.adicionaValorReport("Dtnt", dtnt);
	}

	public String getNacion() {
		return nacion;
	}

	public void setNacion(String nacion) throws ParseException {
		this.nacion = nacion;
		report.adicionaValorReport("Nacion", nacion);
	}

	public int getDatnat() {
		return datnat;
	}

	public void setDatnat(int datnat) throws ParseException {
		this.datnat = datnat;
		report.adicionaValorReport("Datnat", datnat);
	}

	public void setPageSize(int pagesize) throws JRException {
		report.setPageSize(pagesize);
	}

	public void setLineSize(int linesize) {
		report.setLineSize(linesize);
	}

	public int getPageSize() {
		return report.getPageSize();
	}

	public int getPageLine() {
		return report.getPageLine();
	}

	public void saltaLinhas(int qtdLinhas) throws ParseException, JRException {
		report.saltaLinhas(qtdLinhas);
	}

	public void gravaRelatorio(int nroRel) throws ParseException, JRException {
		report.gravaRelatorio(report, nroRel, false);
	}

	public InputStreamDownload imprimir() throws FileNotFoundException, JRException {
		return report.imprimir();
	}

	public String getDiaideObserv() {
		return diaideObserv;
	}

	public void setDiaideObserv(String diaideObserv) throws ParseException {
		this.diaideObserv = diaideObserv;
		report.adicionaValorReport("diaideObserv", diaideObserv);
	}

	public Integer getDinideNumpor() {
		return dinideNumpor;
	}

	public void setDinideNumpor(Integer dinideNumpor) throws ParseException {
		this.dinideNumpor = dinideNumpor;
		report.adicionaValorReport("dinideNumpor", dinideNumpor);
	}

	public Integer getDinideAnopor() {
		return dinideAnopor;
	}

	public void setDinideAnopor(Integer dinideAnopor) throws ParseException {
		this.dinideAnopor = dinideAnopor;
		report.adicionaValorReport("dinideAnopor", dinideAnopor);
	}

	public Long getDincntNdemid() {
		return dincntNdemid;
	}

	public void setDincntNdemid(Long dincntNdemid) throws ParseException {
		this.dincntNdemid = dincntNdemid;
		report.adicionaValorReport("dincntNdemid", dincntNdemid);
	}

	public String getDiaideObserv1() {
		return diaideObserv1;
	}

	public void setDiaideObserv1(String diaideObserv1) throws ParseException {
		this.diaideObserv1 = diaideObserv1;
		report.adicionaValorReport("diaideObserv1", diaideObserv1);
	}

	public Long getDinideNumcpf() {
		return dinideNumcpf;
	}

	public void setDinideNumcpf(Long dinideNumcpf) throws ParseException {
		this.dinideNumcpf = dinideNumcpf;
		report.adicionaValorReport("dinideNumcpf", dinideNumcpf);
	}

	public Integer getDinideCodcep() {
		return dinideCodcep;
	}

	public void setDinideCodcep(Integer dinideCodcep) throws ParseException {
		this.dinideCodcep = dinideCodcep;
		report.adicionaValorReport("dinideCodcep", dinideCodcep);
	}

	public String getDiaideNumfol() {
		return diaideNumfol;
	}

	public void setDiaideNumfol(String diaideNumfol) throws ParseException {
		this.diaideNumfol = diaideNumfol;
		report.adicionaValorReport("diaideNumfol", diaideNumfol);
	}

	public String getDiaideNumliv() {
		return diaideNumliv;
	}

	public void setDiaideNumliv(String diaideNumliv) throws ParseException {
		this.diaideNumliv = diaideNumliv;
		report.adicionaValorReport("diaideNumliv", diaideNumliv);
	}

	public String getDiaideNumcer() {
		return diaideNumcer;
	}

	public void setDiaideNumcer(String diaideNumcer) throws ParseException {
		this.diaideNumcer = diaideNumcer;
		report.adicionaValorReport("diaideNumcer", diaideNumcer);
	}

	public String getDiaideVcivil() {
		return diaideVcivil;
	}

	public void setDiaideVcivil(String diaideVcivil) throws ParseException {
		this.diaideVcivil = diaideVcivil;
		report.adicionaValorReport("diaideVcivil", diaideVcivil);
	}

	public String getDiaideZonaof() {
		return diaideZonaof;
	}

	public void setDiaideZonaof(String diaideZonaof) throws ParseException {
		this.diaideZonaof = diaideZonaof;
		report.adicionaValorReport("diaideZonaof", diaideZonaof);
	}

	public String getDiaidePoldir() {
		return diaidePoldir;
	}

	public void setDiaidePoldir(String diaidePoldir) throws ParseException {
		this.diaidePoldir = diaidePoldir;
		report.adicionaValorReport("diaidePoldir", diaidePoldir);
	}

	public String getDiaideInddir() {
		return diaideInddir;
	}

	public void setDiaideInddir(String diaideInddir) throws ParseException {
		this.diaideInddir = diaideInddir;
		report.adicionaValorReport("diaideInddir", diaideInddir);
	}

	public String getDiaideMeddir() {
		return diaideMeddir;
	}

	public void setDiaideMeddir(String diaideMeddir) throws ParseException {
		this.diaideMeddir = diaideMeddir;
		report.adicionaValorReport("diaideMeddir", diaideMeddir);
	}

	public String getDiaideNomcar() {
		return diaideNomcar;
	}

	public void setDiaideNomcar(String diaideNomcar) throws ParseException {
		this.diaideNomcar = diaideNomcar;
		report.adicionaValorReport("diaideNomcar", diaideNomcar);
	}

	public String getDiaideAnudir() {
		return diaideAnudir;
	}

	public void setDiaideAnudir(String diaideAnudir) throws ParseException {
		this.diaideAnudir = diaideAnudir;
		report.adicionaValorReport("diaideAnudir", diaideAnudir);
	}

	public String getDiaideMindir() {
		return diaideMindir;
	}

	public void setDiaideMindir(String diaideMindir) throws ParseException {
		this.diaideMindir = diaideMindir;
		report.adicionaValorReport("diaideMindir", diaideMindir);
	}

	public String getDiaidePolesq() {
		return diaidePolesq;
	}

	public void setDiaidePolesq(String diaidePolesq) throws ParseException {
		this.diaidePolesq = diaidePolesq;
		report.adicionaValorReport("diaidePolesq", diaidePolesq);
	}

	public String getDiaideIndesq() {
		return diaideIndesq;
	}

	public void setDiaideIndesq(String diaideIndesq) throws ParseException {
		this.diaideIndesq = diaideIndesq;
		report.adicionaValorReport("diaideIndesq", diaideIndesq);
	}

	public String getDiaideMedesq() {
		return diaideMedesq;
	}

	public void setDiaideMedesq(String diaideMedesq) throws ParseException {
		this.diaideMedesq = diaideMedesq;
		report.adicionaValorReport("diaideMedesq", diaideMedesq);
	}

	public String getDiaideAnuesq() {
		return diaideAnuesq;
	}

	public void setDiaideAnuesq(String diaideAnuesq) throws ParseException {
		this.diaideAnuesq = diaideAnuesq;
		report.adicionaValorReport("diaideAnuesq", diaideAnuesq);
	}

	public String getDiaideMinesq() {
		return diaideMinesq;
	}

	public void setDiaideMinesq(String diaideMinesq) throws ParseException {
		this.diaideMinesq = diaideMinesq;
		report.adicionaValorReport("diaideMinesq", diaideMinesq);
	}

	public Integer getDinideCartra() {
		return dinideCartra;
	}

	public void setDinideCartra(Integer dinideCartra) throws ParseException {
		this.dinideCartra = dinideCartra;
		report.adicionaValorReport("dinideCartra", dinideCartra);
	}

	public Long getDinideNserie() {
		return dinideNserie;
	}

	public void setDinideNserie(Long dinideNserie) throws ParseException {
		this.dinideNserie = dinideNserie;
		report.adicionaValorReport("dinideNserie", dinideNserie);
	}

	public String getDiaideNuzona() {
		return diaideNuzona;
	}

	public void setDiaideNuzona(String diaideNuzona) throws ParseException {
		this.diaideNuzona = diaideNuzona;
		report.adicionaValorReport("diaideNuzona", diaideNuzona);
	}

	public String getDiaideNsecao() {
		return diaideNsecao;
	}

	public void setDiaideNsecao(String diaideNsecao) throws ParseException {
		this.diaideNsecao = diaideNsecao;
		report.adicionaValorReport("diaideNsecao", diaideNsecao);
	}

	public Long getDinideTitele() {
		return dinideTitele;
	}

	public void setDinideTitele(Long dinideTitele) throws ParseException {
		this.dinideTitele = dinideTitele;
		report.adicionaValorReport("dinideTitele", dinideTitele);
	}

	public String getDiaideUftitu() {
		return diaideUftitu;
	}

	public void setDiaideUftitu(String diaideUftitu) throws ParseException {
		this.diaideUftitu = diaideUftitu;
		report.adicionaValorReport("diaideUftitu", diaideUftitu);
	}

	public Long getDinideCermil() {
		return dinideCermil;
	}

	public void setDinideCermil(Long dinideCermil) throws ParseException {
		this.dinideCermil = dinideCermil;
		report.adicionaValorReport("dinideCermil", dinideCermil);
	}

	public String getDiaideRegiao() {
		return diaideRegiao;
	}

	public void setDiaideRegiao(String diaideRegiao) throws ParseException {
		this.diaideRegiao = diaideRegiao;
		report.adicionaValorReport("diaideRegiao", diaideRegiao);
	}

	public Long getDinidePrtcnh() {
		return dinidePrtcnh;
	}

	public void setDinidePrtcnh(Long dinidePrtcnh) throws ParseException {
		this.dinidePrtcnh = dinidePrtcnh;
		report.adicionaValorReport("dinidePrtcnh", dinidePrtcnh);
	}

	public String getDiaideUfpcnh() {
		return diaideUfpcnh;
	}

	public void setDiaideUfpcnh(String diaideUfpcnh) throws ParseException {
		this.diaideUfpcnh = diaideUfpcnh;
		report.adicionaValorReport("diaideUfpcnh", diaideUfpcnh);
	}

	public Long getDinideRegant() {
		return dinideRegant;
	}

	public void setDinideRegant(Long dinideRegant) throws ParseException {
		this.dinideRegant = dinideRegant;
		report.adicionaValorReport("dinideRegant", dinideRegant);
	}

	public String getDiaideUfrant() {
		return diaideUfrant;
	}

	public void setDiaideUfrant(String diaideUfrant) throws ParseException {
		this.diaideUfrant = diaideUfrant;
		report.adicionaValorReport("diaideUfrant", diaideUfrant);
	}

	public String getDiaideNomide() {
		return diaideNomide;
	}

	public void setDiaideNomide(String diaideNomide) throws ParseException {
		this.diaideNomide = diaideNomide;
		report.adicionaValorReport("diaideNomide", diaideNomide);
	}

	public String getDiaideNompai() {
		return diaideNompai;
	}

	public void setDiaideNompai(String diaideNompai) throws ParseException {
		this.diaideNompai = diaideNompai;
		report.adicionaValorReport("diaideNompai", diaideNompai);
	}

	public String getDiaideNommae() {
		return diaideNommae;
	}

	public void setDiaideNommae(String diaideNommae) throws ParseException {
		this.diaideNommae = diaideNommae;
		report.adicionaValorReport("diaideNommae", diaideNommae);
	}

	public String getDiaideNomant() {
		return diaideNomant;
	}

	public void setDiaideNomant(String diaideNomant) throws ParseException {
		this.diaideNomant = diaideNomant;
		report.adicionaValorReport("diaideNomant", diaideNomant);
	}

	public Integer getDinideAltura() {
		return dinideAltura;
	}

	public void setDinideAltura(Integer dinideAltura) throws ParseException {
		this.dinideAltura = dinideAltura;
		report.adicionaValorReport("dinideAltura", dinideAltura);
	}

	public String getDiacntDestin() {
		return diacntDestin;
	}

	public void setDiacntDestin(String diacntDestin) throws ParseException {
		this.diacntDestin = diacntDestin;
		report.adicionaValorReport("diacntDestin", diacntDestin);
	}

	public String getHoraCorrente() {
		return horaCorrente;
	}

	public void setHoraCorrente(String horaCorrente) throws ParseException {
		this.horaCorrente = horaCorrente;
		report.adicionaValorReport("horaCorrente", horaCorrente);
	}

}
